projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90579fd
)
mmc: Fix warning if CONFIG_MMC_TRACE is enabled
author
Dirk Behme
<
[email protected]
>
Thu, 8 Mar 2012 02:35:34 +0000
(
02:35
+0000)
committer
Wolfgang Denk
<
[email protected]
>
Sat, 21 Apr 2012 15:04:04 +0000
(17:04 +0200)
Fix the warning
mmc.c: In function 'mmc_send_cmd':
mmc.c:87: warning: assignment from incompatible pointer type
in case CONFIG_MMC_TRACE is enabled.
Signed-off-by: Dirk Behme <
[email protected]
>
CC: Andy Fleming <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index e70fa9f8dcc2bb591d536bb3811a2334723b39cb..596732e80e615f6a8ab1ccd559f11b80419647a6 100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-179,7
+179,7
@@
int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
for (i = 0; i < 4; i++) {
int j;
printf("\t\t\t\t\t%03d - ", i*4);
- ptr = &cmd->response[i];
+ ptr =
(u8 *)
&cmd->response[i];
ptr += 3;
for (j = 0; j < 4; j++)
printf("%02X ", *ptr--);